package org.jeecg.modules.ywSemiFinishedProductEnter.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.ywSemiFinishedProductEnter.entity.YwSemiFinishedProductEnterDetail;
import org.jeecg.modules.ywSemiFinishedProductEnter.entity.YwSemiFinishedProductEnterMain;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 半成品入库-主表
 * @Author: jeecg-boot
 * @Date:   2024-08-15
 * @Version: V1.0
 */
public interface IYwSemiFinishedProductEnterMainService extends IService<YwSemiFinishedProductEnterMain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(YwSemiFinishedProductEnterMain ywSemiFinishedProductEnterMain,List<YwSemiFinishedProductEnterDetail> ywSemiFinishedProductEnterDetailList) ;

	/**
	 * 半成品-确认入库
	 * @param id yw_semi_finished_product_enter_main主键id
	 * @return
	 */
	Result<?> confirmEnter(String id);
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(YwSemiFinishedProductEnterMain ywSemiFinishedProductEnterMain,List<YwSemiFinishedProductEnterDetail> ywSemiFinishedProductEnterDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

}
